import request from '@/utils/request'
export function getParkRole(params){
    return request({
        url:'/parking/rule/list',
        params
    })
}
//删除
export function delParkRole(id){
    return request({
        url:`/parking/rule/${id}`,
        method:'delete'
    })
}
//获取下拉列表
export function getDropList(){
    return request({
        url:'/parking/rule/dropList'
    })
}
//增加
export function addParkRole(data){
    return request({
        url:'/parking/rule',
        method:'post',
        data
    })
}
//编辑
export function getParkRoleDetali(id){
    return request({
        url:`/parking/rule/${id}`
    })
}
export function updateEditRole(data){
    return request({
        url:'/parking/rule',
        method:'put',
        data
    })
}